package self.cloud.domain.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(ignoreResourceNotFound=true,value="classpath:domain.properties")
public class DomainConfig {

    @Value("${self.cloud.domain.name}")
    String name;

    @Value("${self.cloud.domain.network}")
    String network;

    @Value("${self.cloud.domain.record.rr}")
    String recordRr;

    @Value("${self.cloud.domain.record.type}")
    String recordType;

    // Getter

    public String getName() {
        return name;
    }

    public String getNetwork() {
        return network;
    }

    public String getRecordRr() {
        return recordRr;
    }

    public String getRecordType() {
        return recordType;
    }
}
